package org.sam.beatles.controller;

import java.util.ArrayList;
import java.util.List;

import org.sam.beatles.domain.CodeMsg;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 测试用接口
 * 
 * @author sam
 *
 */
@RestController
@CrossOrigin
@RequestMapping("test")
public class CodeMsgController {

	/**
	 * 测试用
	 * 
	 * @return
	 */
	@GetMapping("codemsg")
	public List<CodeMsg> getCodeMsg() {
		List<CodeMsg> result = new ArrayList<>();
		result.add(CodeMsg.DingTalkDeptIds_ERROR);
		result.add(CodeMsg.MOBILE_ERROR);
		result.add(CodeMsg.SERVER_ERROR);
		
		return result;
	}
}
